package mn.idax.exchange.otc.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import mn.idax.exchange.common.UTCTimeUtil;
import mn.idax.exchange.otc.enums.MessageNotifyEnum;
import mn.idax.exchange.otc.util.UUidUtils;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.UUID;

/**
 * @Auther: dison
 * @Date: 2018/8/30 10:29
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "otc_notify_log")
public class MessageNotifyDTO implements Serializable {

    private static final long serialVersionUID = 4961367612589207119L;
    /** 消息唯一标识 **/
    private String messageId = UUidUtils.getUUID();
    /** 消息通知类型 **/
    private MessageNotifyEnum messageType;
    /** 跳转类型 **/
    private MessageNotifyEnum.SkipType skipType;
    /** 跳转key **/
    private String skipKey;
    /** 消息内容 **/
    private String body;
    /** 用户接收者 **/
    private String token;

    private Object[] dynamicParam;

    private long sendTime = UTCTimeUtil.getUTCTimeLong();

    /**
     * 0默认未读 1 已读
     */
    private Integer readFlag;



}
